const {
	log
} = require("console");

const db = uniCloud.database();
exports.main = async (event, context) => {
	let res = await db.collection('painai').where(event).get()

	//访问微信云数据库
	//1.调用获取默认环境的数据库的引用：
	return {
		data: res.data,
		code: 200,
		message: "成功"
	}
};